﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using BUS;
using DTO;
using QuanLyNhaSach.usercontrol;
using System.Data.OleDb;

namespace QuanLyNhaSach
{
    public partial class frmMain : DevComponents.DotNetBar.Office2007RibbonForm
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void rbtHeThong_Click(object sender, EventArgs e)
        {
            HeThong frm = new HeThong();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtSach_Click(object sender, EventArgs e)
        {
            Sach frm = new Sach();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtTheLoai_Click(object sender, EventArgs e)
        {
            TheLoai frm = new TheLoai();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtPhieuNhapSach_Click(object sender, EventArgs e)
        {
            PhieuNhapSach frm = new PhieuNhapSach();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtChiTietPhieuNhapSach_Click(object sender, EventArgs e)
        {
            ChiTietPhieuNhapSach frm = new ChiTietPhieuNhapSach();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtKhachHang_Click(object sender, EventArgs e)
        {
            KhachHang frm = new KhachHang();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtHoaDon_Click(object sender, EventArgs e)
        {
            HoaDon frm = new HoaDon();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtChiTietHoaDon_Click(object sender, EventArgs e)
        {
            ChiTietHoaDon frm = new ChiTietHoaDon();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtBaoCao_Click(object sender, EventArgs e)
        {
            BaoCao frm = new BaoCao();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void rbtPhieuThuTien_Click(object sender, EventArgs e)
        {
            PhieuThuTien frm = new PhieuThuTien();
            pnMain.Controls.Clear();
            pnMain.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

    }
}